package com.finace.money.di.module;

import com.finace.money.data.OpenAccountModel;
import com.finace.money.data.http.ApiService;
import com.finace.money.presenter.contract.OpenAccountContract;

import dagger.Module;
import dagger.Provides;

/**
 * Created by zhangpeng on 2018/1/26.
 */

@Module
public class OpenAccountModule {

    public OpenAccountContract.View mView;

    public OpenAccountModule(OpenAccountContract.View mView) {
        this.mView = mView;
    }

    @Provides
    public OpenAccountContract.IOpenAccountModel provideModel(ApiService apiService) {
        return new OpenAccountModel(apiService);
    }

    @Provides
    public OpenAccountContract.View provideView() {
        return mView;
    }
}
